local hx__wuwo = fk.CreateSkill {
  name = "hx__wuwo",
}

hx__wuwo:addEffect(fk.EventPhaseStart, {
  anim_type = "control",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(hx__wuwo.name) and player.phase == Player.Start
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local choice = room:askToChoice(player, {
      choices = {"本回合无法使用或打出牌", "本回合非锁定技失效"},
      skill_name = hx__wuwo.name,
      prompt = "#hx__wuwo-choice",
    })
    local to = room:askToChoosePlayers(player, {
      min_num = 1,
      max_num = 1,
      targets = room:getOtherPlayers(player, false),
      skill_name = hx__wuwo.name,
      prompt = "请选择一名其他角色",
      cancelable = false,
    })
    if choice == "本回合无法使用或打出牌" then
      room:addPlayerMark(to[1], "@@hx__wuwo_prohibit-turn")
      room:addPlayerMark(player, "@@hx__wuwo_prohibit-turn")
    else
      room:addPlayerMark(to[1], "@@hx__wuwo_nil-turn")
      room:addPlayerMark(to[1], MarkEnum.UncompulsoryInvalidity .. "-turn")
      room:addPlayerMark(player, "@@hx__wuwo_nil-turn")
      room:addPlayerMark(player, MarkEnum.UncompulsoryInvalidity .. "-turn")
    end
  end,
})

hx__wuwo:addEffect("prohibit", {
  prohibit_use = function(self, player, card)
    return card and player:getMark("@@hx__wuwo_prohibit-turn") > 0
  end,
  prohibit_response = function(self, player, card)
    return card and player:getMark("@@hx__wuwo_prohibit-turn") > 0
  end,
})



return hx__wuwo